﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace 外观模式_投资基金
{
    class Fund
    {
        Stock1 s1 = new Stock1();
        Stock2 s2 = new Stock2();
        Stock3 s3 = new Stock3();
        NationalDebt1 nd1 = new NationalDebt1();
        Realty1 re1 = new Realty1();

        public void Buy()
        {
            s1.Buy();
            s2.Buy();
            s3.Buy();
            nd1.Buy();
            re1.Buy();            
        }
        
        public void Sell()
        {
            s1.Sell();
            s2.Sell();
            s3.Sell();
            nd1.Sell();
            re1.Sell();        
        }
    }
}
